var express = require('express');
var router = express.Router();

var { setArticle,  showArticle, getAllUser,stopLogin, changeIndex, } = require('../controller/admin')
//deleteArticle 有问题


// 发布文章
router.post('/setArticle', setArticle)
//文章的上线和下线
router.post('/showArticle', showArticle)
//获得所有的用户
router.get('/getAllUser', getAllUser)
//用户封停操作
router.get('/stopLogin/:id', stopLogin)
//修改首页
router.post('/changeIndex', changeIndex)

module.exports = router;
